package com.matrix.java.chap_07.exercise;

public class EX7_08 {
    public static void main(String[] args) {
        double[] array = {1, 2, 3, 4, 5, 6, 0.5, 1, 3, 4};
        array[9] = 5.5;
        System.out.println(array[0] + array[1]);
        double sum = 0;
        for (double v : array) {
            sum += v;
        }
        System.out.println(sum);
        double min = array[0];
        for (double v : array) {
            min = Math.min(v, min);
        }
        System.out.println(min);
        double[] arr = {3.5, 5.5, 4.52, 5.6};
    }
}
